﻿@model IEntityModel<$prjsn$.Entity.CodeList, $prjsn$.Entity.CodeListFilter>

@this.CreateForm()

@AddControls(
        new Fieldset("w70p mh100 ", Str.Business.Common.Description)
    {
        new DefinitionList
        {
            new TextOrInput(maxLength: 150)
                .SetSourceProperty(() => Model.Filter.Code),

            new TextOrInput(maxLength: 250)
                .SetSourceProperty(() => Model.Filter.Description),

            new RadioForNullableBool()
                .SetSourceProperty(() => Model.Filter.IsVisible)
                .ShowDescription(true)
                .SetCssClassName(Str.Align.Left),

            new TextOrInput(maxLength: 10)
                .SetSourceProperty(() => Model.Filter.IdExact)
        }
    })

@AddControls(
    new AdjustListView
    {
        Type = AdjustListViewType.Fieldset,
        CssClassName = "w70p mh75"
    })

@this.CloseForm()